<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/financial" replace>理财管理</el-breadcrumb-item>
      <el-breadcrumb-item>个人投资明细</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">个人投资明细</div>
      <div class="searchBox">
        <el-form :model="searchObject" size="mini" inline>
          <div class="block">
            <el-form-item label="姓名">
              <el-input v-model="searchObject.userName"></el-input>
            </el-form-item>
            <el-form-item label="手机号">
              <el-input v-model="searchObject.userMobile"></el-input>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" icon="el-icon-search" circle @click="search"></el-button>
            </el-form-item>
          </div>
        </el-form>
      </div>
      <el-table :data="tableData">
        <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
        <el-table-column prop="" label="用户编号" align="center"></el-table-column>
        <el-table-column prop="" label="用户姓名" align="center"></el-table-column>
        <el-table-column prop="" label="手机号" align="center"></el-table-column>
        <el-table-column prop="" label="理财余额" align="center"></el-table-column>
        <el-table-column prop="" label="理财投资金额" align="center"></el-table-column>
        <el-table-column label="投资详情" align="center">
          <template slot-scope="data">
            <router-link :to="{path: 'investmentInfo', query: {userId: data.row.userId}}">查看</router-link>
          </template>
        </el-table-column>
      </el-table>
      <pagination :maxTotal="maxTotal" @handleSize="handleSizeChange" @handleCurrent="handleCurrentChange"></pagination>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import pagination from 'components/pagination'

  export default {
    data () {
      return {
        maxTotal: 10,
        searchObject: {},
        tableData: []
      }
    },
    created () {
    },
    methods: {
      search () {
      },
      handleSizeChange (val) {
      },
      handleCurrentChange (val) {
      }
    },
    components: {
      pagination
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>

</style>
